#! /usr/bin/env python
# -*- coding:utf-8 -*-
#author:无涯

import  yaml
from common.public import *

def readYaml():
	with open(filePath(directory='config',fileName='url.yaml')) as f:
		return yaml.safe_load(f)

def getUrl():
	'''获取到执行的地址信息'''
	if str(readYaml()['url']['url']).endswith('0.1:8000'):
		return readYaml()['url']['qa']
	elif str(readYaml()['url']['url']).endswith('142.233:8000'):
		return readYaml()['url']['line']